use "C:\Real IMF GDPPC PPP"
keep if country=="Cambodia" | country=="China" | country=="Indonesia" | country=="Lao People's Democratic Republic" | country=="Malaysia" | country=="Myanmar" | country=="Thailand" | country=="Vietnam"
replace country="Laos" if country=="Lao People's Democratic Republic" 
keep if year==2005
gen rgdppc05=rimfgpcppp
format rgdppc05 %7.0f
keep country iso3 rgdppc05
sort country
save "C:\z1",replace
use "C:\Country Change Indicators"
sort country year q
bysort country: gen obs=_n
keep if obs==1
keep country cpd mav cpd1 grate30 date30
format mav %5.2f cpd cpd1 %7.1f
sort country
save "C:\z2",replace
sort country 
merge country using "C:\z1"
drop _merge
sort country 
save "C:\Starting Conditions",replace
outsheet country rgdppc05 cpd mav cpd1 grate30 date30 using "C:\Starting Conditions",replace
 
use "C:\Country Change Indicators"
keep if year<2011
label variable tline "Forest Transition Line"
label variable rline "REDD Line"
label variable cpd1 "Benchmark Annualized Clearing"
label variable cpd "Annualized Clearing"

line tline rline cpd1 cpd mdate if country=="Cambodia", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("Cambodia") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\cambodia.wmf", replace

line tline rline cpd1 cpd mdate if country=="China", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("China") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\china.wmf", replace

line tline rline cpd1 cpd mdate if country=="Indonesia", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("Indonesia") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\indonesia.wmf", replace

line tline rline cpd1 cpd mdate if country=="Laos", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("Lao PDR") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\laos.wmf", replace

line tline rline cpd1 cpd mdate if country=="Malaysia", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("Malaysia") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\malaysia.wmf", replace

line tline rline cpd1 cpd mdate if country=="Myanmar", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("Myanmar") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\myanmar.wmf", replace

line tline rline cpd1 cpd mdate if country=="Thailand", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("Thailand") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\thailand.wmf", replace

line tline rline cpd1 cpd mdate if country=="Vietnam", lcolor(blue emerald black red) lwidth(thick) lpattern( dash_dot longdash dash solid) xtitle("Vietnam") ysize(1) xsize(1) legend(size(medsmall) rows(4))
graph export "C:\vietnam.wmf", replace


outsheet tline rline cpd1 cpd mdate using "C:\Starting Conditions X",replace
